﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using JTLeigh.Commerce.Spencer.Features.ProductImages.Common.Entities;

namespace JTLeigh.Commerce.Spencer.Features.ProductImages.Common.UnitTests.Entities
{

	/// <summary>
	/// Unit tests for the <see cref="ProductImageMetadata"/> class.
	/// </summary>
	[TestClass]
	public class ProductImageMetadataFixture
	{

		#region Constructors

		/// <summary>
		/// Ensures the default constructor initializes the size and view collection.
		/// </summary>
		[TestMethod]
		public void TestConstructor()
		{
			ProductImageMetadata metadata;

			metadata = new ProductImageMetadata();
			Assert.IsNotNull(metadata.SizesBySizeId);
			Assert.AreEqual(0, metadata.SizesBySizeId.Count);
			Assert.IsNotNull(metadata.SizesByWellKnowSizeCode);
			Assert.AreEqual(0, metadata.SizesByWellKnowSizeCode.Count);
			Assert.IsNotNull(metadata.ViewsByViewId);
			Assert.AreEqual(0, metadata.ViewsByViewId.Count);
			Assert.IsNotNull(metadata.ViewsByWellKnowViewCode);
			Assert.AreEqual(0, metadata.ViewsByWellKnowViewCode.Count);
		}

		#endregion // Constructors

	}

}
